#pragma config(Motor,  port2,           LeftBase,      tmotorNormal, openLoop, reversed)
#pragma config(Motor,  port3,           RightBase,     tmotorNormal, openLoop)
#pragma config(Motor,  port4,           LeftArm,       tmotorNormal, openLoop)
#pragma config(Motor,  port5,           RightArm,      tmotorNormal, openLoop, reversed)
#pragma config(Motor,  port6,           LeftVacume,    tmotorNormal, openLoop)
#pragma config(Motor,  port7,           RightVacume,   tmotorNormal, openLoop, reversed)
#pragma config(Motor,  port8,           LeftTurntable, tmotorNormal, openLoop)
#pragma config(Motor,  port9,           RightTurntable, tmotorNormal, openLoop)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

task main()
{
  while(1) // the code goes forever
  {

  if(vexRT[Btn6U] == 1)
    {
      motor[LeftTurntable] = 127;
      motor[RightTurntable] = 127;
    }
    else
    {
      motor[LeftTurntable] = 0;
      motor[RightTurntable] = 0;
    }
  if(vexRT[Btn6D] == 1)
    {
      motor[LeftTurntable] = -127;
      motor[RightTurntable] = -127;
    }


    motor[LeftBase] = vexRT(Ch2); // the left motor
    motor[RightBase] = vexRT(Ch3); // the right motor
    ////////////////////////////////////////////////////////////////////////////////////////
    if(vexRT[Btn7U] == 1) // makes the arms go up if Btn 7 Up is pressed
    {
      motor[LeftArm] = 127;
      motor[RightArm] = 127;
    }
    else
    {
      motor[LeftArm] = 0;
      motor[RightArm] = 0;
    }
    ////////////////////////////////////////////////////////////////////////////////////////
    if(vexRT[Btn7D] == 1)  // makes the arms go down if Btn 7 Down is pressed
    {
      motor[LeftArm] = -127;
      motor[RightArm] = -127;
    }
    ////////////////////////////////////////////////////////////////////////////////////////
    if(vexRT[Btn8U] == 1) // makes the vacume go up if Btn 8 up is pressed
    {
      motor[LeftVacume] = 127;
      motor[RightVacume] = 127;
    }
    else
    {
      motor[LeftVacume] = 0;
      motor[RightVacume] = 0;
    }
    ////////////////////////////////////////////////////////////////////////////////////////
    if(vexRT[Btn8D] == 1) // makes the vacume go down if Btn 8 down is pressed
    {
      motor[LeftVacume] = -127;
      motor[RightVacume] = -127;
    }
  }
}
